<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        td{
            text-align: center;
        }

    </style>
</head>
<body>
<p>
    <a href="/User/addData">添加用户</a>
<form action="<?php echo U();?>" method="get">
    <input type="text" name="sou" value="">
    <input type="submit" value="搜索">
</form>
</p>
<table style="width: 90% ;border: 1px solid #c0c0c0">
    <tr>
        <th>uid</th>
        <th>user_name</th>
        <th>user_password</th>
        <th>操作</th>
    </tr>
    <?php if(is_array($list)): foreach($list as $key=>$val): ?><tr>
            <td><?php echo ($val['uid']); ?></td>
            <td><?php echo ($val['user_name']); ?></td>
            <td><?php echo ($val['user_password']); ?></td>
            <td>
                <a href="<?php echo U('saveData', array('uid'=>$val['uid']));?>">修改</a>
                <a href="<?php echo U('delectData', array('uid'=>$val['uid']));?>">删除</a>

            </td>
        </tr><?php endforeach; endif; ?>
    <tr>
        <td colspan="3" class="num">
            <?php echo ($show); ?>
        </td>
    </tr>
</table>

</body>
</html>